package com.lq.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;

/**
 * 短文信息表(ShortPage)实体类
 *
 * @author makejava
 * @since 2023-07-21 22:56:13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("short_page")
public class ShortPage implements Serializable {
    /**
     * 短文id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    /**
     * 短文类型
     */
    private String type;
    /**
     * 短文内容
     */
    private String content;
    /**
     * 短文获取状态
     */
    private String msg;
    /**
     * 获取时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date time;
    /**
     * 短文接口路径
     */
    private String url;

}

